package com.bsj.sipgateway.command;

/**
 * <p>
 * Title: 命令下发信息
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Company: BSJ
 * </p>
 * 
 * @author JIANG
 * @date 2017-12-22
 */
public class ComInfo {

	private String uuid; // UUID号
	private String vip; // FD老设备协议为伪IP，JT808协议为终端号
	private int cmdType; // 命令类型
	private String status; // 下发状态
	private String paramMsg; // 参数信息
	private String devid; // 终端号
	private String userName; //用户名
	private String clientId; //客户端id
	private int    chn;      //通道
	private String terminalType; 	//设备型号
	private long clientSessionId;   //FD协议对应的clientId
	private String spareMessage;	//附加信息
	private boolean isMonitor;		//是否被监控
	public ComInfo() {
		super();
	}

	public ComInfo(String uuid, String vip, int cmdType, String status, String paramMsg, String devid) {
		super();
		this.uuid = uuid;
		this.vip = vip;
		this.cmdType = cmdType;
		this.status = status;
		this.paramMsg = paramMsg;
		this.devid = devid;
	}

	public ComInfo(String uuid, String vip, int cmdType, String status, String paramMsg, String devid, String terminalType) {
		super();
		this.uuid = uuid;
		this.vip = vip;
		this.cmdType = cmdType;
		this.status = status;
		this.paramMsg = paramMsg;
		this.devid = devid;
		this.terminalType = terminalType;
	}
	
	
	public ComInfo(String uuid, String vip, int cmdType, String status, String paramMsg, String devid, String userName,
                   String clientId, int chn) {
		super();
		this.uuid = uuid;
		this.vip = vip;
		this.cmdType = cmdType;
		this.status = status;
		this.paramMsg = paramMsg;
		this.devid = devid;
		this.userName = userName;
		this.clientId = clientId;
		this.chn = chn;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getVip() {
		return vip;
	}

	public void setVip(String vip) {
		this.vip = vip;
	}

	public int getCmdType() {
		return cmdType;
	}

	public void setCmdType(int cmdType) {
		this.cmdType = cmdType;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getParamMsg() {
		return paramMsg;
	}

	public void setParamMsg(String paramMsg) {
		this.paramMsg = paramMsg;
	}

	public String getDevid() {
		return devid;
	}

	public void setDevid(String devid) {
		this.devid = devid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public int getChn() {
		return chn;
	}

	public void setChn(int chn) {
		this.chn = chn;
	}

	public String getTerminalType() {
		return terminalType;
	}

	public void setTerminalType(String terminalType) {
		this.terminalType = terminalType;
	}

	public long getClientSessionId() {
		return clientSessionId;
	}

	public void setClientSessionId(long clientSessionId) {
		this.clientSessionId = clientSessionId;
	}

	public String getSpareMessage() {
		return spareMessage;
	}

	public void setSpareMessage(String spareMessage) {
		this.spareMessage = spareMessage;
	}
	
	

	public boolean isMonitor() {
		return isMonitor;
	}

	public void setMonitor(boolean isMontior) {
		this.isMonitor = isMontior;
	}

	@Override
	public String toString() {
		return "ComInfo [uuid=" + uuid + ", vip=" + vip + ", cmdType=" + cmdType + ", status=" + status + ", paramMsg="
				+ paramMsg + ", devid=" + devid + "]";
	}

}